import http from '@/utils/http'
/**
 * 资源可视化历史运行状态
 * @returns
 */
export function fetchLogsStatus(params) {
    return http({
        url: '/v1/logs/status',
        method: 'get',
        params: params
    })
}
/**
 * @description: 获取登录日志
 * @param {*} params
 * @returns
 */
export function fetchLogsLogin(params) {
    return http({
        url: '/v1/logs/login',
        method: 'get',
        params: params
    })
}
/**
 * @description: 获取操作日志
 * @param {*} params
 * @returns
 */
export function fetchLogsOperate(params) {
    return http({
        url: '/v1/logs/operate',
        method: 'get',
        params: params
    })
}
/**
 * @description: 获取系统配置日志
 * @param {*} params
 * @returns
 */
export function fetchLogsConfig(params) {
    return http({
        url: '/v1/logs/setting',
        method: 'get',
        params: params
    })
}
/**
 * @description: 获取故障日志
 * @param {*} params
 * @returns
 */
export function fetchLogsFault(params) {
    return http({
        url: '/v1/logs/fault',
        method: 'get',
        params: params
    })
}
/**
 * @description: 导出日志
 * @param {*} params
 * @param {*} url
 * @returns
 */
export function fetchLogsExport(params, url) {
    return http({
        url: url,
        method: 'get',
        responseType: 'blob',
        params: params
    })
}
/**
 * @description: 获取用户操作日志
 * @param {*} params
 * @returns
 */
export function fetchLogsUserOperate(params) {
    return http({
        url: '/v1/logs/userOperate',
        method: 'get',
        params: params
    })
}
